package com.mioto.ld.module.device.service.impl;

import com.mioto.ld.module.device.model.DeviceFunctionLogPO;
import com.mioto.ld.module.device.model.DeviceFunctionLogPagerVO;
import org.springframework.stereotype.Service;

import com.mioto.ld.module.device.dao.DeviceFunctionLogDao;
import com.mioto.ld.module.device.model.DeviceFunctionLog;
import com.mioto.ld.module.device.service.IDeviceFunctionLogService;
import javax.annotation.Resource;
import java.util.List;

/**
 *
 * @author mioto
 * @date 2024-05-15 16:13:51
 */
@Service("deviceFunctionLogService")
public class DeviceFunctionLogServiceImpl implements IDeviceFunctionLogService{

    @Resource
    private DeviceFunctionLogDao deviceFunctionLogDao;

    @Override
    public List<DeviceFunctionLog> findList(DeviceFunctionLog deviceFunctionLog) {
        return deviceFunctionLogDao.findList(deviceFunctionLog);
    }

    @Override
    public int insert(DeviceFunctionLog deviceFunctionLog) {
        return deviceFunctionLogDao.insertIgnoreNull(deviceFunctionLog);
    }

    @Override
    public int update(DeviceFunctionLog deviceFunctionLog) {
        return deviceFunctionLogDao.update(deviceFunctionLog);
    }

    @Override
    public int updateIgnoreNull(DeviceFunctionLog deviceFunctionLog) {
        return deviceFunctionLogDao.updateIgnoreNull(deviceFunctionLog);
    }

    @Override
    public DeviceFunctionLog findByColumn(String column, Object value) {
        return deviceFunctionLogDao.findByColumn(column,value);
    }

    @Override
    public int deleteByColumn(String column, Object value) {
        return deviceFunctionLogDao.deleteByColumn(column,value);
    }

    @Override
    public int batchDelete(Integer[] ids) {
        return deviceFunctionLogDao.batchDelete(ids);
    }

    @Override
    public List<DeviceFunctionLogPagerVO> findPager(Integer deviceId,String startTime,String endTime) {
        return deviceFunctionLogDao.findPager(deviceId,startTime,endTime);
    }

    @Override
    public DeviceFunctionLogPO findIdAndDeviceIdBySnAndIdentity(String deviceSn, String identity) {
        return deviceFunctionLogDao.findIdAndDeviceIdBySnAndIdentity(deviceSn,identity) ;
    }
}